package gemini.castor.ui.client.page.widget.adv;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.shared.HasHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiTemplate;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class AdvWidget extends Composite implements HasHandlers {

	@UiTemplate("AdvWidget.ui.xml")
	interface MyUiBinder extends UiBinder<Panel, AdvWidget> {
	}

	private static final MyUiBinder binder = GWT.create(MyUiBinder.class);

	public AdvWidget() {
		initWidget(binder.createAndBindUi(this));
	}

	@UiField
	VerticalPanel content;
	
	@UiField
	Label htmWgdCaption;

	public void loadData(Widget wg, String Caption) {
		content.clear();
		content.add(wg);
		htmWgdCaption.setText(Caption);
	}
}
